<?php
class Admin_Form_UpdateEnquire extends Apps_Form {
	public function init() {
        $mapper = new Model_Tool_DataMapper();

		$id = new Zend_Form_Element_Hidden('id');

		$e1 = new Zend_Form_Element_Select(
				'order_status_id',
				array('required'     => true));
		$e1->setMultiOptions($mapper->mapKeyValue(new Model_DbTable_OrderStatus(), 'id', 'title'));

		$e2 = new Zend_Form_Element_Select(
				'payment_type_id',
				array('required'     => true));
		$e2->setMultiOptions($mapper->mapKeyValue(new Model_DbTable_PaymentType(), 'id', 'title'));

		$e3 = new Zend_Form_Element_Text(
				'price',
				array('required'     => true));

		$description = new Zend_Form_Element_Textarea(
				'description',
				array('label' => 'Description',
						'style' => 'width: 200px'));

		$this->addElement($id)
			 ->addElement($e1)
			 ->addElement($e2)
			 ->addElement($e3)
			 ->addElement($description);

		$this->makeup();
	}
}